package com.usian.common.exception;

import com.usian.model.common.dtos.ResponseResult;

/**
 * @author szx
 * @date 2022/10/10
 * @description
 */
public class ConsumerException extends RuntimeException {
    private ResponseResult result;

    public ConsumerException(Integer code,String msg){
        this.result = new ResponseResult(code,msg);
    }

    public ResponseResult getResult() {
        return result;
    }

    public void setResult(ResponseResult result) {
        this.result = result;
    }
}
